<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:37:"./views/home/mobile/task/detail.phtml";i:1627629214;}*/ ?>
<!doctype html>
<html>
<head>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>[<?php echo !empty($item['id'])?$item['id']:''; ?>]<?php echo !empty($item['title'])?$item['title']:''; ?>,佣金<?php echo !empty($item['unit_price'])?$item['unit_price']:''; ?>元</title>
    <link rel="stylesheet" href="/static/home/mobile/css/bootstrap.css">
    <link href="/static/home/mobile/css/reset_5.css" rel="stylesheet" type="text/css" />
    <link href="/static/home/mobile/css/style.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="/static/home/mobile/css/font-awesome.min.css">
    <link href="/static/home/mobile/css/lightbox.min.css" rel="stylesheet" type="text/css" />
<!--    <link href="/static/home/mobile/css/new_style.css" rel="stylesheet" type="text/css" />-->
    <link href="/static/home/mobile/css/swiper.min.css" type="text/css" rel="stylesheet">
    <link href="/static/home/mobile/css/new_page.css" rel="stylesheet" type="text/css" />
    <link href="/static/home/mobile/css/new_style.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="/static/home/mobile/css/base64face.css" />
    <link rel="stylesheet" type="text/css" href="/static/home/mobile/css/baseface3.css" />
    <link href="/static/home/mobile/css/workinfo_1.css" rel="stylesheet" type="text/css" />
    <link href="/static/home/mobile/css/workinfo_2.css" rel="stylesheet" type="text/css" />
    <link href="/static/home/mobile/css/workinfo_3.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="/static/plugins/dialog/css/dialog.css" />
    <link rel="stylesheet" href="/static/home/mobile/css/layui.css">
    <style type="text/css">
      
      body{
      	-webkit-user-select:none;
	    -moz-user-select:none;
	    -o-user-select:none;
	    user-select:none;
	    background:#111;
	    color:#f2f2f2;
      }
        .task-list-remain-num span {
            width: 33.33%;
            float: left;
            text-align: center;
        }
        .paging {
            padding: 30px 0;
        }
        .dialog {
            position: fixed;
            left: 0;
            top: 0;
            z-index: 10001;
            width: 100%;
            height: 100%;
        }
        .dialog-content {
            width: 70%;
        }
        .dialog-overlay {
            position: absolute;
            top: 0;
            left: 0;
            z-index: 10002;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
        }
        .van-hairline--top:after{border-top-width: 0px;}
        .header .main{margin-bottom:0px;}
        .header .main[data-v-newpage]{width:calc(100% - 60px)}
        .header .main a.user_opera_btn {
            display:block;
            width:56px;
            font-size:12px;
            line-height:22px;
            color:#FE4B1C;
            text-align:center;
            border:1px solid #FE4B1C;
            box-sizing: border-box;
            border-radius:4px;
        }
        .newinfo{
            padding-top: 0px;
            background-color: #f4f4f8;
        }
      .blue{
          font-size: 12px;
    	  color: #4690fa;
         display: inline-block;
         border: 1px solid #4690fa;
         border-radius: 5px;
         padding: 2px 6px;
         margin-right: 10px;
		}
      .yellow{
      	color: #f88b16;
		border-color: #f88b16;
        display: inline-block;
        font-size: 12px;
        border-radius: 5px;
		padding: 2px 6px;
		margin-right: 10px;
        border:1px solid #f88b16;
      }
      .price_new{
        
	    text-align: center;
	    border-radius: 6px;
       color: #f19252;
       font-size: 14px;
       font-weight: 700;
      }
      a.user_opera_btn{
        display: block;
        width: 56px;
        font-size: 12px;
        line-height: 22px;
        color: #FE4B1C;
        text-align: center;
        border: 1px solid #FE4B1C;
        box-sizing: border-box;
        border-radius: 4px
      }
      .hiddenBlack{
        	position: absolute;
			top: 0;
			left: 0;
			z-index: 9999;
			background-color: #000;
			filter: alpha(Opacity=80);
			opacity: .8;
			display: none;
            height:100%;
      }
      .saveimgbtn{
       		left: 0;
			right: 0;
			bottom: 0;
			display: none;
			position: fixed;
            z-index:10000;
      }
      .add{height:100%;overflow:hidden;}
      #checkUl .file_wrap>img{
       margin-top:100px !important; 
      }
      .checkInput{
       top:100px !important; 
      }
      .explain{
   
        position: absolute;
        right: 5px;
        top:0px;
      }
      .guizebox{
			text-align: left;
	}
      .van-dialogx {
    position: fixed;
    top: 50%;
    left: 50%;
    overflow: hidden;
    width: 85%;
    font-size: 16px;
	display: none;
    transition: .3s;
    border-radius: 4px;
    background-color: #fff;
    -webkit-transform: translate3d(-50%,-50%,0);
    transform: translate3d(-50%,-50%,0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
	    z-index: 2028;
		border-radius: 12px;
}
.van-dialogx .van-dialog__headerx {
    padding: 10px;
    background-image: linear-gradient(0,#ff4242,#308CFC);
    color: #fff;
	text-align: center;
    font-weight: 500;
}
.van-dialogx .van-dialog__confirmx, .van-dialogx .van-dialog__confirmx:active {
    color: #ff592b;
    font-weight: 500;
}
.van-button--largex {
    width: 100%;
    height: 50px;
    line-height: 48px;
}
.van-buttonx .van-button__textx {
    display: flex;
    align-items: center;
    justify-content: center;
}
.van-dialogx .van-dialog__confirmx, .van-dialogx .van-dialog__confirmx:active {
    color: #ff592b;
    font-weight: 500;
}
.van-buttonx {
    display: inline-block;
    position: relative;
    padding: 0;
    height: 44px;
    line-height: 42px;
    font-size: 16px;
    border-radius: 2px;
    text-align: center;
    box-sizing: border-box;
    -webkit-appearance: none;
    -webkit-text-size-adjust: 100%;
}
.van-dialog__footerx {
    overflow: hidden;
	background: #fff;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.van-dialogx .van-dialog__messagex {
    padding: 20px;
    font-size: 14px;
    line-height: 1.5;
    max-height: 60vh;
    text-align: center;
    -webkit-overflow-scrolling: touch;
    white-space: pre-wrap;
}
.van-dialog__message--leftx {
    text-align: left;
}
.van-dialog__contentx{

}
.van-button--defaultx{
	background: #fff;

}
.van-dialog__message--has-titlex {
    color: #7d7e80;
    padding-top: 12px;
}
.guizebox{
	text-align: left;
}
      /** -- 文件上传样式 --**/
 .file-up {
    position: relative;
    display: inline-block;
    background:#fff;
    border: 1px solid #fff;
    border-radius: 4px;
    padding: 4px 12px;
    overflow: hidden;
    color:#ffffff;
    text-decoration: none;
    text-indent: 0;
    line-height: 20px;
   	height: 100px;
	min-width: 100px;
    font-size:12px;
    text-align: center;
}
.file-up input {
    position: absolute;
    font-size: 100px;
    right: 0;
    top: 0;
    opacity: 0;
}
.file-up:hover {
    background: #AADFFD;
    border-color: #78C3F3;
    color: #004974;
    text-decoration: none;
}
     .file-up:link ,.file-up:visited{
        color:#000;
      } 
      .newbtn{
        color:#ffffff;
        background:#308CFC;
        border: 1px solid #308CFC;
      }
       .yellow-new{
          	background:#ECF4FF;
            color:#308CFC !important;
            border-color:#ECF4FF !important;
border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
          }
          .blue-new{
          	background:#ECF4FF;
            color:#308CFC !important;
            border:0px !important;
border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
          }
.hong-back{height:330px;position:relative;width:100%;overflow:hidden;}
.hong-back .circle {
    background: #222;
    height: 260px;
    border-radius: 0 0 50% 50%;
    width: 150%;
    margin-left: -25%;
    display: block;
	position:absolute;
	top:0;
	left:0;
}
.site-header .tit-name{overflow:initial;}
.header .avatar[data-v-newpage]{border-radius: 8px;margin-top:-50px;}
.header[data-v-newpage],.main{background-color:#333;}
.van-hairline--bottom:after{border-bottom-width: 0px;}
.newinfo,.steps[data-v-newpage]{background:#111;}
.desc,.van-cell,.van-collapse-item__content,.van-collapse-item__content{background:#333 !important;color:#f2f2f2;}
.van-cell:not(:last-child):after{border-bottom:1px solid #444;}
.van-field__control{color:#fff;}
.van-goods-action,.van-goods-action-mini-btn,a:link, a:visited{background:#1a1a1a;color:#e2e2e2;}
[class*=van-hairline]:after{border:0px solid #333;}
.steps .step-item .wrap .input[data-v-newpage]{border:none}
.price_new{color:red;}
.yellow-new,.blue-new{
    background: #2F62FF;
    color: #fff !important;
}
    </style>
        <script type="text/javascript" src='/static/home/mobile/js/vconsole.min.js'></script>
    <script>
      //  var vConsole = new VConsole();
    </script>
</head>
    
<body data-offset="50" id="htmlBody" >
<header class="site-header header-fixed">
    <input type="hidden" id="taskId">
    <a href="javascript:history.go(-1)" onclick="go_back()" class="back"></a>
    <div class="tit-name" id="title_txt">
    	<?php if(!$seepackage): ?>
    	任务详情
    	<?php else: ?>
    		浏览悬赏:&nbsp;<span id="left_time">0S</span>
    	<?php endif; ?>
    	
    	
    <div style="float: right;padding-top: 0px;position:relative;" >
    	<span  onclick="$('#down').toggle()">
    		
<svg  t="1588001651720" class="icon" viewBox="0 0 1027 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1912" width="25" height="25"><path d="M 927.878 467.618 h -377.118 v -365.861 c 0 -16.8859 -16.8859 -39.4004 -39.4004 -39.4004 c -22.5145 0 -39.4004 22.5145 -39.4004 45.029 v 365.861 H 106.097 c -22.5145 -5.62863 -45.029 16.8859 -45.029 39.4004 s 22.5145 39.4004 39.4004 39.4004 h 365.861 v 365.861 c 5.62863 22.5145 22.5145 45.029 45.029 45.029 s 39.4004 -22.5145 39.4004 -39.4004 v -371.49 h 371.49 c 22.5145 0 39.4004 -22.5145 39.4004 -39.4004 s -11.2573 -45.029 -33.7718 -45.029 Z" fill="#ffffff" p-id="1913"></path></svg>
    	</span>

<div id="down" style="position:absolute;top:40px;right:0;border-radius:6px;padding:10px;width:120px;z-index:1;border:1px solid #eee;background:#fff;z-index:10;color:#000;display:none;">
	<div class="gzitem"  style="text-align:center;height:50px;line-height:50px;border-bottom:1px solid #eee;">&nbsp;&nbsp;&nbsp;&nbsp;接单规则</div>
	<!--<div  style="text-align:center;height:50px;line-height:50px;border-bottom:1px solid #eee;" onclick="$('#down').hide();$('#menu').show()">&nbsp;&nbsp;&nbsp;&nbsp;分享任务</div>-->
	
</div>

</div>

    
    </div>
    <!--<?php if($is_can_op == 1): ?>-->
    <!--<a href="/home/mytaskaudit/index/id/<?php echo !empty($item['id'])?$item['id']:''; ?>.html" class="sc" id="schide_sh">审核</a>-->
    <!-- <a href="#" class="sc" style="right: 110px;" id="schide_sh">审核</a>
    <a href="#" class="sc" id="schide" style="right:60px;" onclick="TaskDetail.hideTask()">下架</a>
    <a href="#" class="sc" id="sc">隐藏</a>
    <a href="#" class="sc" id="qx">取消隐藏</a> -->
    <!--<?php endif; ?> -->
   
</header>
<div class="hong-back" >
    <span class="circle"></span>


    <div data-v-newpage="" class="header van-hairline--bottom" style="width:94%;border-radius:6px;margin-left:3%;top:100px;padding:10px 10px;height:220px;">
        <div data-v-newpage="" class="van-row van-row--flex van-row--align-center" >
           <a href="/home/user/view/id/<?php echo $item['uid']; ?>" style="padding-top:20px;">
           	 <!--/home/user/view/id/<?php echo $item['uid']; ?> -->
           <!--	<?php if($item['avatar'] !=''): ?>-->
          <div data-v-newpage=""  class="avatar" style="height:60px;width:60px;background-image: url(<?php echo $item['avatar']; ?>?imageMogr2/auto-orient/thumbnail/!20p/blur/1x0/quality/10|imageslim 
);">
            <?php else: ?>
            	<div data-v-newpage=""  class="avatar" style="height:60px;width:60px;background-image: url('/static/home/mobile/picture/user.png');">
            <?php endif; ?>
         
              
            </div>
             </a>
           <!--<a href="#" class="user_opera_btn" onclick="followUser('<?php echo $item['uid']; ?>');" style="position: absolute;margin-left: 2px;"><?php if($isFollow != 1): ?>+关注<?php else: ?>已关注<?php endif; ?> </a>-->
           
            <div data-v-newpage="" class="main" style="line-height:30px;font-size:16px;">
                <p  class="title van-ellipsis" style="float:left;line-height:30px;"> 
                商家ID:<?php echo !empty($item['uid'])?$item['uid']:''; ?>
                
                </p>

       
            
                <p data-v-c04d7c44="" class="title van-ellipsis" style="float:right;">
                   任务ID:<?php echo $item['id']; ?>
                 </p>
                 
    	     </div>
        </div>
        
        <div style="width:100%;height:40px;line-height:40px;">
        	     <div data-v-newpage="" style="float:left;">
                    <span data-v-newpage="" style="font-size:14px;margin-right:10px;" class="van-tag van-tag--medium yellow-new" > <?php echo $item['category_name']; ?></span>
                    <span data-v-newpage="" style="font-size:14px;" class="van-tag van-tag--medium blue-new "> <?php echo $item['appName']; ?></span>
                   
                </div>
        	
        	
        	
            <div data-v-newpage="" class="price_new"  style="float:right;">

     
                <span data-v-newpage="" style="font-size: 22px;color:#FF2424;"><?php echo $item['unit_price']; ?></span>元

            </div>
                
                
        </div>
        
        <div style="height:40px;line-height:40px;font-size:18px;"><?php echo $item['title']; ?></div>
        <div data-v-newpage="" class="van-row van-row--flex van-row--align-center" style="border:2px dashed #308CFC;border-radius:10px;padding:20px 10px;width:100%;">
            <div data-v-newpage="" class="group">
                <p data-v-newpage="" class="value" style="font-size: 15px;"><?php echo $item['sucess']; ?></p>
                <p data-v-newpage="" class="label">已完成</p></div>
            <div data-v-newpage="" class="group van-hairline--left">
                <p data-v-newpage="" class="value" style="font-size: 15px;"><?php echo abs($item['ticket_num']-$item['join_num']); ?></p>
                <p data-v-newpage="" class="label">总剩余数</p></div>
            <div data-v-newpage="" class="group van-hairline--left">
                <p data-v-newpage="" class="value" style="font-size: 15px;"><?php echo $item['task_time']; ?>h</p>
                <p data-v-newpage="" class="label">限时交单</p>
            </div>
            <div data-v-newpage="" class="group van-hairline--left">
                <p data-v-newpage="" class="value" style="font-size: 15px;"><?php echo $item['task_checkout_time']; ?>h</p>
                <p data-v-newpage="" class="label">限时审核</p>
            </div>
        </div>
        
        
        <div data-v-newpage="" class="tips" style="margin-top: 18px;display:none;">
            <p data-v-newpage="" >注意：通过率低的悬赏，请谨慎参与；打钱、转账、投资的悬赏请勿参与，否则后果自负。</p>
        </div>
        
        
    </div>


</div>
   
   
   
   
  
  
  

  
  
  
  
<div  class="container Ftp Fbm newinfo" data-v-newpage="">
	





    
    
   
                <div data-v-newpage="" class="van-collapse van-hairline--top-bottom" style="margin-top: 0px;">
        <div data-v-newpage="" class="desc van-collapse-item">
            <div data-v-newpage="" class="van-cell van-cell--clickable van-collapse-item__title van-collapse-item__title--expanded">
                <div data-v-newpage="" class="van-cell__title">
                    <div data-v-newpage="" class="title" >    
                    <i style="border-left:2px solid #308CFC;display:block;width:2px;float:left;height:14px;margin-top: 6px;"></i>&nbsp;做单说明</div>
                </div> 
          </i>
            </div>
            <div data-v-newpage="" class="van-collapse-item__wrapper" style="">
            	<div data-v-newpage=""  class="van-collapse-item__content">
               <span>1、请先报名再做任务，否则无法获得赏金。</span><br/>
			                        	<span>2、举报违法任务私下交易、同类平台，有奖。</span><br/>
			                        	<span>3、私下交易有风险，平台不对平台以外的单子负责。</span><br/>
    			                    </div>
    			                   
            </div>
                 <div data-v-newpage="" class="desc van-collapse-item">
            <div data-v-newpage="" class="van-cell van-cell--clickable van-collapse-item__title van-collapse-item__title--expanded">
                <div data-v-newpage="" class="van-cell__title">
                    <div data-v-newpage="" class="title" >
                    	<i style="border-left:2px solid #308CFC;display:block;width:2px;float:left;height:14px;margin-top: 6px;"></i>
                    	&nbsp;任务说明</div>
                </div>
                <!--<div data-v-newpage="" class="van-cell__value">
                    <span data-v-newpage="" class="van-tag van-tag--plain van-tag--medium van-hairline--surround" style="color: rgb(255, 89, 43);">悬赏号<?php echo !empty($item['id'])?$item['id']:''; ?></span></div>
                <i data-v-newpage="" class="van-icon van-icon-arrow van-cell__right-icon"><!----></i>
            </div>
            <div data-v-newpage="" class="van-collapse-item__wrapper" style="">
                <div data-v-newpage=""  class="van-collapse-item__content"><?php echo !empty($item['detail'])?$item['detail']:''; ?></div>
            </div>
        </div>
    </div>
    <!---->
    <div data-v-newpage="" class="steps van-hairline--top" style="margin-top: 10px;margin-bottom: 20px">
        <div data-v-newpage="" class="van-cell" style="padding-bottom: 5px;">
            <div data-v-newpage="" class="van-cell__title">
                <span data-v-newpage="">任务步骤</span>
            </div>
        </div>
       <?php if(!empty($item['about_url'])): ?>
        <div data-v-newpage="" class="step-item">
            <div data-v-newpage="" class="van-row van-row--flex van-row--justify-space-between">
                <p data-v-newpage="" class="title"><?php echo $item['about_url_remark']; ?></p>
            </div>
            <!---->
            <div data-v-newpage="" class="wrap van-row van-row--flex van-row--align-center" style="margin-left: -6px; margin-right: -6px;">
                <div  data-v-newpage="" class="wrap-item van-col van-col--12" style="padding-left: 6px; padding-right: 6px; width:70%">
                    <div data-v-newpage="" class="input van-cell van-field">
                        <div class="van-cell__value van-cell__value--alone">
                            <div class="van-field__body">
                                <input type="text" id="url" placeholder="<?php echo $item['about_url']; ?>" disabled="disabled" class="van-field__control">
                            </div>
                        </div>
                    </div>
                </div>
                <div data-v-newpage="" class="wrap-item van-col van-col--12" style="padding-left: 6px; padding-right: 6px;width:30%">
                    <button data-v-newpage="" class="van-button van-button--warning van-button--small newbtn" id="task_url">
                        <span data-v-newpage="" class="van-button__text newbtn" >复制数据</span>
                    </button>
                </div>
            </div>
            <!----> <!----> <!----> <!---->
        </div>
        <?php endif; if(!empty($operate_steps)): ?>
        <div data-v-newpage="" class="step-item" style="padding-top: 5px;">
         <?php if(is_array($operate_steps) || $operate_steps instanceof \think\Collection || $operate_steps instanceof \think\Paginator): $k = 0; $__LIST__ = $operate_steps;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$operate_step): $mod = ($k % 2 );++$k;if($operate_step['type']==3||$operate_step['type']==4): ?>
            <div data-v-newpage="" class="van-row van-row--flex van-row--justify-space-between">
                <div data-v-newpage="" class="icon"><?php echo $k; ?></div>
                <p data-v-newpage="" class="title"><?php echo $operate_step['content']; ?></p>
            </div>
          <?php endif; ?>
            <!----> <!----> <!----> <!---->
          <?php if(!empty($operate_step['content2'])): if($operate_step['type']==3): ?>
          		<!--<div><input id="rwurl" value="<?php echo $operate_step['content2']; ?>" /><span onclick="fzurl();" >复制链接</span></div>-->
          		 <div data-v-newpage="" class="wrap van-row van-row--flex van-row--align-center" style="margin-left: -6px; margin-right: -6px;">
                    <div  data-v-newpage="" class="wrap-item van-col van-col--12" style="padding-left: 6px; padding-right: 6px; width:70%">
                    <div data-v-newpage="" class="input van-cell van-field">
                        <div class="van-cell__value van-cell__value--alone">
                            <div class="van-field__body">
                                <input type="text" id="rwurl" value="<?php echo $operate_step['content2']; ?>" readonly class="van-field__control">
                            </div>
                        </div>
                    </div>
                </div>
                   
                      <div data-v-newpage="" class="wrap-item van-col van-col--12" style="padding-left: 6px; padding-right: 6px;width:30%">
                              <button data-v-newpage="" class="van-button van-button--warning van-button--small newbtn" onclick="fzurl();">
                                  <span data-v-newpage="" class="van-button__text" >复制链接</span>
                              </button>
                        </div>
              	 </div>
               
          	<?php else: ?>
          		<!--<div><?php echo $operate_step['content2']; ?></div>-->
          	<?php endif; endif; if(!empty($operate_step['image'])): if($operate_step['type']!=2): ?>
         <div data-v-newpage="" class="wrap van-row van-row--flex" style="margin-left: -6px; margin-right: -6px;">
              
                <div data-v-newpage="" class="wrap-item van-col van-col--12" style="padding-left: 6px; padding-right: 6px;margin-bottom:6px;">
                    <a data-lightbox="thumbs-set" href="<?php echo $operate_step['image']; ?>"><img data-v-newpage="" src="<?php echo $operate_step['image']; ?>" class="image"></a>
                    <div data-v-newpage="" class="tag-right">说明图</div>
                </div>
             
            </div>
    			<?php endif; endif; ?>
            <p></p>
            <p></p>
            <?php endforeach; endif; else: echo "" ;endif; ?>
            <!---->
        </div>
        <?php endif; ?>


		 <!--
        <?php if(!empty($item['thumbs'])): ?>
      
		<div class="fujian cl">

            <div class="swiper-container">
			
					 <p class="tit">
     <a class=" js-component-link nui-txt-link" style="outline: 0px;cursor: pointer;padding: 5px 8px 4px;border-radius: 3px;background-color: #308CFC;font-family: &quot;Microsoft Yahei&quot;, verdana;white-space: nowrap;color: #ffffff;text-align: center;">&nbsp;+ 请按以下“审核图例”提交审核验证 +&nbsp;</a>				
					</p><br><br>
            <div class="swiper-container">
                <div class="swiper-wrapper">
                    <?php if(is_array($item['thumbs']) || $item['thumbs'] instanceof \think\Collection || $item['thumbs'] instanceof \think\Paginator): $i = 0; $__LIST__ = $item['thumbs'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$thumb): $mod = ($i % 2 );++$i;?>
                    <div class="swiper-slide">
                        <a data-lightbox="thumbs-set" href="<?php echo to_media($thumb); ?>"><img src="<?php echo to_media($thumb); ?>"></a></div>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </div>
            </div>
            <div class="swiper-button-prev"></div>
            <div class="swiper-button-next"></div>
        </div>
        <?php endif; ?>
          -->
    </div>
 <?php if($allow_accept): ?>
              <!--<div class="fujian2 cl">-->
     <div data-v-newpage="" class="steps van-hairline--top" style="margin-top: 10px;margin-bottom: 20px">
                      <div data-v-newpage="" class="van-cell">
                            <div data-v-newpage="" class="van-cell__title">
                                <span data-v-newpage="">收集步骤</span>
                            </div>
       				</div>
            <form id="post_form" enctype="multipart/form-data" method="post">
              
               <div data-v-newpage="" class="step-item">
              <?php if($has_tu>0): ?>
              <!--<p>样图</p>-->
   
              <?php if(is_array($operate_steps) || $operate_steps instanceof \think\Collection || $operate_steps instanceof \think\Paginator): $k = 0; $__LIST__ = $operate_steps;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$operate_step): $mod = ($k % 2 );++$k;if($operate_step['type']==2): ?>
                  <div data-v-newpage="" class="van-row van-row--flex van-row--justify-space-between">
                		<div data-v-newpage="" class="icon"><?php echo $k; ?></div>
               			 <p data-v-newpage="" class="title"><?php echo $operate_step['content']; ?></p>
            		</div>
              <div data-v-newpage="" class="wrap van-row van-row--flex" style="margin-left: -6px; margin-right: -6px;">
                <div data-v-newpage="" class="wrap-item van-col van-col--12" style="padding-left: 6px; padding-right: 6px;margin-bottom:6px;">
                    <a data-lightbox="thumbs-set" href="<?php echo $operate_step['image']; ?>"><img data-v-newpage="" src="<?php echo $operate_step['image']; ?>" class="image"></a>
                  <div data-v-newpage="" class="tag-right">示例图</div>
                   <!-- <div class="file_class" style="background-image:url('/static/jia.png');width:100px;height:100px;background-size:100px;">
                      <input type="file" class="file_up" name="mycheckFile[]" />
                    </div>  -->
                  
                  	<!--<img class="file_img"/>
                  	<input type="hidden" id="file_value<?php echo $k; ?>" class="file_value"/>
                    <input type="file" class="file_up"/>-->
                </div>
                <div data-v-newpage="" class="wrap-item van-col van-col--12" style="padding-left: 6px; padding-right: 6px;">
                  <!--<a href="javascript:;" class="file-up">
                        上传截图
                        <input type="file" name="mycheckFile[]" >
                    </a> -->
                  <div class="file_class" style="width:100px;height:100px;background-size:100px;">
                       <?php if(!is_null($member_task_join_info)): if($member_task_join_info['status'] == 1): ?>
                    		<a href="javascript:;" class="file-up">
                    			
                    			
	<svg t="1588008700093" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5239" width="84" height="54"><path d="M945.9 800.4h-92.7v92.7c0 17.1-13.8 30.9-30.9 30.9s-30.9-13.8-30.9-30.9v-92.7h-92.7c-17.1 0-30.9-13.8-30.9-30.9 0-17.1 13.8-30.9 30.9-30.9h92.7v-92.7c0-17.1 13.8-30.9 30.9-30.9s30.9 13.8 30.9 30.9v92.7h92.7c17.1 0 30.9 13.8 30.9 30.9 0 17.1-13.8 30.9-30.9 30.9z m-51.5-247.2h-2.1c-4.3 11.9-15.4 20.6-28.8 20.6s-24.5-8.7-28.8-20.6H833v-8.3c0-0.7-0.4-1.3-0.4-2s0.3-1.3 0.4-1.9v-5.2c0-104.1-0.1-191.3-0.1-191.2-35.1-77-93.3-9.1-104.6 5.3l-262 272.3-130.9-98.9c-13.9-10.5-33.3-8.2-44.5 5.1L138.5 766.5c-11.8 14-10.2 35.1 3.6 47.1 6.1 5.4 13.8 8 21.3 8 0.2 0 237.5-0.1 429.6-0.1 0.9-0.1 1.8-0.6 2.7-0.6 1 0 1.8 0.5 2.7 0.5h7.6v1.5c11.9 4.3 20.6 15.4 20.6 28.8s-8.7 24.5-20.6 28.8v2.1H136c-36.1 0-65.6-30.1-65.6-66.8V164.1c0-36.8 29.5-64.1 65.6-64.1h690.1c36.1 0 68.3 27.3 68.3 64.1v389.1zM328.8 204.9c-57.1 0-103.5 47.1-103.5 105.1 0 58.1 46.3 105.1 103.5 105.1 57.1 0 103.4-47.1 103.4-105.1 0-58.1-46.3-105.1-103.4-105.1z" p-id="5240" fill="#308CFC"></path></svg>
	
                                 上传截图
                              <input type="file"  name="mycheckFile[]"  class="file_up"/>
                            </a>
                                <img class="jietu" style="display:none;position:relative;top:0;left:0;height:100px;width:100px;" src="">
                          <?php endif; else: ?> 
                    			<a href="javascript:acceptUp()" class="file-up">
                    				<svg t="1588008700093" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5239" width="84" height="54"><path d="M945.9 800.4h-92.7v92.7c0 17.1-13.8 30.9-30.9 30.9s-30.9-13.8-30.9-30.9v-92.7h-92.7c-17.1 0-30.9-13.8-30.9-30.9 0-17.1 13.8-30.9 30.9-30.9h92.7v-92.7c0-17.1 13.8-30.9 30.9-30.9s30.9 13.8 30.9 30.9v92.7h92.7c17.1 0 30.9 13.8 30.9 30.9 0 17.1-13.8 30.9-30.9 30.9z m-51.5-247.2h-2.1c-4.3 11.9-15.4 20.6-28.8 20.6s-24.5-8.7-28.8-20.6H833v-8.3c0-0.7-0.4-1.3-0.4-2s0.3-1.3 0.4-1.9v-5.2c0-104.1-0.1-191.3-0.1-191.2-35.1-77-93.3-9.1-104.6 5.3l-262 272.3-130.9-98.9c-13.9-10.5-33.3-8.2-44.5 5.1L138.5 766.5c-11.8 14-10.2 35.1 3.6 47.1 6.1 5.4 13.8 8 21.3 8 0.2 0 237.5-0.1 429.6-0.1 0.9-0.1 1.8-0.6 2.7-0.6 1 0 1.8 0.5 2.7 0.5h7.6v1.5c11.9 4.3 20.6 15.4 20.6 28.8s-8.7 24.5-20.6 28.8v2.1H136c-36.1 0-65.6-30.1-65.6-66.8V164.1c0-36.8 29.5-64.1 65.6-64.1h690.1c36.1 0 68.3 27.3 68.3 64.1v389.1zM328.8 204.9c-57.1 0-103.5 47.1-103.5 105.1 0 58.1 46.3 105.1 103.5 105.1 57.1 0 103.4-47.1 103.4-105.1 0-58.1-46.3-105.1-103.4-105.1z" p-id="5240" fill="#308CFC"></path></svg>
                    				上传截图
                    				
                    				</a>
                        <?php endif; ?>
                   
                    </div>
                </div>
            </div>
              <?php endif; endforeach; endif; else: echo "" ;endif; ?>
              </div>
           <!-- <p class="tit">请上传验证图</p>-->
            <!-- 详细验证图 -->
              
              
            <!-- 提示信息   -->
            <!--<div class="msg_cont check_msg">注：如需上传多张验证图，传完第一张后，点击右侧箭头可继续上传下一张，最多可上传5张。</div>-->
             <?php endif; ?>
            <!-- 文字验证   -->
             
              <?php if($has_wz>1): if(is_array($operate_steps) || $operate_steps instanceof \think\Collection || $operate_steps instanceof \think\Paginator): $k = 0; $__LIST__ = $operate_steps;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$operate_step): $mod = ($k % 2 );++$k;if($operate_step['type']==1): ?>
               <div data-v-newpage="" class="steps van-hairline--top" style="margin-top: 10px;margin-bottom: 20px">
                 <div data-v-newpage="" class="step-item">
                 	 <div data-v-newpage="" class="van-row van-row--flex van-row--justify-space-between">
                		<div data-v-newpage="" class="icon"><?php echo $k; ?></div>
               			 <p data-v-newpage="" class="title"><?php echo $operate_step['content']; ?></p>
            		</div>
                     <div data-v-newpage="" class="wrap van-row van-row--flex">
                       <div data-v-newpage="" class="wrap-item van-col van-col--24">
                         <div data-v-newpage="" class="input van-cell van-field">
                           <div class="van-field__left-icon"><i class="van-icon van-icon-edit"><!----></i></div>
                           <div class="van-cell__value van-cell__value--alone">
                             <div class="van-field__body">
                               <input type="text" name="check_text_content2" placeholder="请输入文字" class="check_text_content2 van-field__control"  
                                          <?php if(!is_null($member_task_join_info)): if($member_task_join_info['status'] == 1): endif; else: ?> disabled="disabled"
                                      	  <?php endif; ?> class="van-field__control">
                             </div>
                           </div>
                         </div>
                       </div>
                   </div>
                 </div>
               </div>
              <?php endif; endforeach; endif; else: echo "" ;endif; endif; if($has_wz==1): if(is_array($operate_steps) || $operate_steps instanceof \think\Collection || $operate_steps instanceof \think\Paginator): $k = 0; $__LIST__ = $operate_steps;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$operate_step): $mod = ($k % 2 );++$k;if($operate_step['type']==1): ?>
               <div data-v-newpage="" class="steps van-hairline--top" style="margin-top: 10px;margin-bottom: 20px">
                 <div data-v-newpage="" class="step-item">
                 	 <div data-v-newpage="" class="van-row van-row--flex van-row--justify-space-between">
                		<div data-v-newpage="" class="icon"><?php echo $k; ?></div>
               			 <p data-v-newpage="" class="title"><?php echo $operate_step['content']; ?></p>
            		</div>
                     <div data-v-newpage="" class="wrap van-row van-row--flex">
                       <div data-v-newpage="" class="wrap-item van-col van-col--24">
                         <div data-v-newpage="" class="input van-cell van-field">
                           <div class="van-field__left-icon"><i class="van-icon van-icon-edit"><!----></i></div>
                           <div class="van-cell__value van-cell__value--alone">
                             <div class="van-field__body">
                               <input type="text" name="check_text_content2" placeholder="请输入文字" class="check_text_content2 van-field__control"  
                                          <?php if(!is_null($member_task_join_info)): if($member_task_join_info['status'] == 1): endif; else: ?> disabled="disabled"
                                      	  <?php endif; ?> class="van-field__control">
                             </div>
                           </div>
                         </div>
                       </div>
                   </div>
                 </div>
               </div>
              <?php endif; endforeach; endif; else: echo "" ;endif; endif; ?>
           <input type="text" name="check_text_content" style="display:none" class="check_text_content"/>
             
            <!-- 上传之后显示按钮 -->
    <div data-v-8fa7d66a="" class="van-hairline--top van-goods-action">
      <div data-v-8fa7d66a="" class="van-goods-action-mini-btn van-hairline">
        <div data-v-8fa7d66a="" class="van-icon van-icon-wap-home van-goods-action-mini-btn__icon">
          <!----></div>
        <a href="/">首页</a>
      </div> 
      <div data-v-8fa7d66a="" class="van-goods-action-mini-btn van-hairline">
        <div data-v-8fa7d66a="" class="van-icon van-icon-send-gift-o van-goods-action-mini-btn__icon">
          <!---->
        </div>
        <!--<a href="/home/mytaskjoin/category/t/lock.html">待完成</a>-->
   <!--     <a href="/home/account/addchat/id/<?php echo $item['id']; ?>">联系雇主</a> -->
        <a href="/home/account/chatinfo/task_id/<?php echo $item['id']; ?>">联系雇主</a>
        
      </div> 
          <?php if(!is_null($member_task_join_info)): if($member_task_join_info['status'] == 1): ?>
                <button data-v-8fa7d66a="" type="button"  class="van-button van-button--danger van-button--large van-button--square van-goods-action-big-btn" style="color:#ffffff;background:#308CFC;">
                  <span data-v-8fa7d66a="" class="van-button__text"  onclick="save();">提交任务</span>
                </button>
      		<?php endif; if($member_task_join_info['status'] == 2): ?>
                <button data-v-8fa7d66a="" class="van-button van-button--danger van-button--large van-button--square van-goods-action-big-btn" style="color:#ffffff;background:#308CFC;">
                  <span data-v-8fa7d66a="" class="van-button__text" >待审核</span>
                </button>
      		<?php endif; if($member_task_join_info['status'] == 3): ?>
                <button data-v-8fa7d66a="" class="van-button van-button--danger van-button--large van-button--square van-goods-action-big-btn" style="color:#ffffff;background:#308CFC;">
                  <span data-v-8fa7d66a="" class="van-button__text" >已通过</span>
                </button>
      		<?php endif; if($member_task_join_info['status'] == 4): ?>
      				<button data-v-newpage="" id="replay_lq" class="van-button van-button--danger van-button--large van-button--square van-goods-action-big-btn" style="background: #308CFC;">
                      <span data-v-newpage="" class="van-button__text" style="color:#ffffff;">重新领取</span>
                  </button>
      
                    <button data-v-8fa7d66a="" class="van-button van-button--danger van-button--large van-button--square van-goods-action-big-btn" style="color:#ffffff;background:#308CFC;">
                      <span data-v-8fa7d66a="" class="van-button__text"  onclick="noPass()">未通过</span>
                    </button>
      		<?php endif; endif; ?>
              </div>

           <!-- <div class="check_msg">提示：请诚信做单，骗单将被罚款，严重者封号。</div> -->
              <br/><br/>
            <input type="hidden" id="ts_id" name="id" value="<?php echo !empty($item['id'])?$item['id']:'0'; ?>" />
           </form>
        </div>
    	<?php if(!is_null($member_task_join_info)): if($member_task_join_info['status'] == 1): ?>
				<!-- 显示是否提交任务处 -->
				
		    <?php endif; else: ?>
		    <div data-v-newpage="" class="van-hairline--top van-goods-action" >
		        <button data-v-newpage="" id="replyUrl" class="van-button van-button--danger van-button--large van-button--square van-goods-action-big-btn" style="background: #308CFC;">
		            <span data-v-newpage="" class="van-button__text" style="color:#ffffff;"><?php if($is_can_op == 1): ?>审核任务<?php else: if($item['is_stop'] == 1): ?>
			             暂停中
			            <?php else: ?>
			            领取任务
			            <?php endif; endif; ?></span>
		        </button>
		    </div>
	    <?php endif; endif; ?>
    <!----> <!---->
  <!--图片保存弹出层-->
     <!-- <div class="hiddenBlack"></div>
      <div class="saveimgbtn">
        <input type="hidden" id="imgsrc" value="">
         <button data-v-newpage="" id="saveimgbtn" class="van-button van-button--large van-button--square van-goods-action-big-btn">
            <span data-v-newpage="" class="van-button__text" style="color:#2F91FD;">保存到手机</span>
        </button> 
        <button data-v-newpage="" id="saveimgcancel" class="van-button  van-button--large van-button--square van-goods-action-big-btn">
            <span data-v-newpage="" class="van-button__text" style="color:#2F91FD;">取消</span>
        </button>   
      </div>-->
      
</div>



<div id="menu" style="position:fixed;top:0;bottom:0;height:100%;width:100%;background:rgba(0,0,0,0.5);z-index:9999;display:none;" onclick="$('#menu').hide()">

<div style="width:96%;margin-left:2%;background:#fff;border-radius:6px;position:fixed;bottom:10px;">
  <div style="width:100%;text-align:center;color:#5757ab;font-size: 18px;height:50px;line-height:50px;border-bottom:1px solid #eee;" onclick="share(0)">
  微信朋友圈
  </div>
  <div style="width:100%;text-align:center;color:#5757ab;font-size: 18px;height:50px;line-height:50px;border-bottom:1px solid #eee;" onclick="share(1)">
  微信好友
  </div>
  <!--<div style="width:100%;text-align:center;color:#5757ab;font-size: 18px;height:50px;line-height:50px;border-bottom:1px solid #eee;" onclick="share(2)">-->
  <!--QQ好友-->
  <!--</div>-->
  <!--<div style="width:100%;text-align:center;color:#5757ab;font-size: 18px;height:50px;line-height:50px;border-bottom:1px solid #eee;" onclick="share(3)">-->
  <!--QQ空间-->
  <!--</div>-->
   <div style="width:100%;text-align:center;color:#5757ab;font-size: 18px;height:50px;line-height:50px;border-bottom:1px solid #eee;" onclick="share(4)">
  复制链接
  </div>
  <div style="width:100%;text-align:center;color:#5757ab;font-size: 18px;height:50px;line-height:50px;border-bottom:1px solid #eee;" onclick="$('#menu').hide()">
  取消
  </div>

</div>


</div>

      <script src="/static/home/mobile/js/jsbridge-mini.js"></script>
<script>
        function GetQueryString(name)
            {
                 var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
                 var r = window.location.search.substr(1).match(reg);
                 if(r!=null)return  unescape(r[2]); return null;
            }
	function go_back(){
		//var from=GetQueryString('from')
		var str=location.href
		if(str.indexOf("share") != -1 ){
			location.href='/'
			return;
		}
		//location.href="/home/task/index.html"
		//history.go(-1);
		 window.close();
		
	}
 
 
    	function share(val){
		    	if(val == 4){
		    		jsBridge.setClipboardText("http://fx.99dybk.com/?task_id=<?php echo $item['id']; ?>");
		    		alert('复制推广链接成功');
		    		return;
		    	}
		
		
		   	jsBridge.share({
				    //分享到，0 微信朋友圈，1 微信好友，2 QQ好友，3 QQ空间；未指定则弹出分享菜单
				    to    : val,
				    //标题，未指定则为当前页面 title 标题
				    title : "<?php echo $item['unit_price']; ?>元悬赏任务，赏金立即可提现！-闲猫",
				    //链接，未指定则为当前页面链接
				    link  : "http://fx.99dybk.com/?task_id=<?php echo $item['id']; ?>",
				    //图标，未指定则为 App 图标
				    imgUrl: "http://www.niurenzhuan.xyz/static/home/mobile/login/img3.jpg",
				    //描述，如未指定，App 会尝试抓取页面 meta description content，<meta name="description" content="页面描述..." />
				    //均无描述内容则显示链接
				    desc: "下载闲猫APP,搜索任务ID：<?php echo $item['id']; ?>,完成任务即可提现！" 
				}, function(succ) {
					
					if(succ){
				    	  $.post(
		                    '/home/invite/share_reward',
		                    {},
		                    function (ret) {
		            		
		                      console.log(ret)
		                      if(ret == 1){
		                    	alert("任务分享成功");
		                    	return;
		                      }
		                    },'json'
		                );
				    }
				    
				    alert(succ ? "分享成功" : "分享失败或取消了分享");
				});
    		}
  

</script>




  <script src="/static/home/mobile/js/jquery-2.0.3.min.js"></script>
  <script src="https://cdn.bootcss.com/layer/2.3/layer.js"></script>
<script type="text/javascript" src="/static/home/mobile/js/lightbox.min.js"></script>
<script type="text/javascript" src="/static/home/mobile/js/swiper.min.js"></script>
<script type="text/javascript" src="/static/home/mobile/js/clipboard.min.js"></script>  
<script type="text/javascript">
    var swiper = new Swiper('.fujian .swiper-container', {
        nextButton: '.fujian .swiper-button-next',
        prevButton: '.fujian .swiper-button-prev',
        spaceBetween: 0,
        speed: 1000,
        autoplay: 3000
    });
</script>
<!-- 弹出层 -->
<script src="/static/plugins/dialog/js/dialog.js"></script>
<!-- 弹出层 -->

<script type="text/javascript" src="/static/home/mobile/js/global.js"></script>
<script type="text/javascript">
 
    var id = <?php echo !empty($item['id'])?$item['id']:''; ?>;
    $("#replyUrl").click(function(){
      <?php if($is_can_op == 1): ?>
        var check_url=new StringBuffer();
         check_url.append("http://").append(document.domain).append("/home/mytaskaudit/index/id/<?php echo !empty($item['id'])?$item['id']:''; ?>.html");
		 //window.location.href =document.domain+"/home/mytaskaudit/index/id/<?php echo !empty($item['id'])?$item['id']:''; ?>.html"；
          window.location.href =check_url.toString();
         //plus.runtime.openURL(check_url.toString());
      <?php else: ?>
     $loading = message('正在抢单','','loading');
        $.post('/home/task/accept.html', { id: id }, function(res) {
            message(res.message,res.redirect,res.type);
            $loading.close();
        });   
      <?php endif; ?>
          });  
       //重新领取
      
	$("#replay_lq").click(function(){
       $.ajax({
            url: '/home/task/accept.html',
            type: 'POST',
            data:{id:$('#ts_id').val()},
            dataType: "json",
            async: false,
            success: function (res) {
                message(res.message,res.redirect,res.type);
            },
            error: function () {
                message('请求错误','','error');
            }
        	});
         });  
       
    //屏幕
   if(($(window).width())<400)
   {
   	  $("a.js-component-link").css("font-size","12px");
   }
   else
   {
      $("a.js-component-link").css("font-size","15px");
   }
  if(($(window).width())<370)
    {
    	    $("span.blue").css("font-size","10px");
            $("span.yellow").css("font-size","10px");
    }
    else
    {
      $("span.blue").css("font-size","12px");
      $("span.yellow").css("font-size","12px");
    }
   //屏幕图片长按事件
  	

$("img").on({  
        touchstart: function(e) { 
            var x=0;
            // 长按事件触发  
            timeOutEvent = setTimeout(function() {  
              timeOutEvent = 0;
             var width= $(window).width();
             var height=document.body.scrollHeight;
              $(".hiddenBlack").css({"width":width,"height":height,"position":"fixed"});
              $(".hiddenBlack").show();
              $(".saveimgbtn").show();           
               var imgurl =e.target.attributes['src']['nodeValue'];
               var img = new Image();
               img.setAttribute('crossOrigin', 'anonymous');
               
		       img.src=imgurl;
	           var base64 = getBase64Image(img);
                 $("#saveimgbtn").off("click").click(function(event){
                  event.stopPropagation();
                     lbuilder.Native.saveImage(base64, function(message){
                      alert("图片保存成功！");
                      // message('图片保存成功','','sucess');
                           $(".hiddenBlack").hide();
    					   $(".saveimgbtn").hide();     
                  }, function(err){
                      alert("图片保存失败！ "+err);
                  });
            	});
              
              //saveimg(src); 	 
            }, 800);  
            //长按400毫秒   
             //e.preventDefault();    
        },    
        touchmove: function() {    
            //clearTimeout(timeOutEvent);    
            //timeOutEvent = 0;    
        },    
        touchend: function() {    
            clearTimeout(timeOutEvent);     
            //return false;    
        } 
    }) 
 $(".hiddenBlack").on("click",function(){
 		$(this).hide();
    	$(".saveimgbtn").hide();
   		
 });
  $("#saveimgcancel").on("click",function(){
  	                 
       $(".hiddenBlack").hide();
    	$(".saveimgbtn").hide();        
  });
   //复制url
       var rwurl = "<?php echo $has_rw; ?>";
       if(rwurl>0){
       	function fzurl(){
          var rw_url=document.getElementById("rwurl");
          rw_url.select();
          document.execCommand("copy");
          message('复制成功','','success');
          
          }
       }

  function getBase64Image(img) {
      var canvas = document.createElement("canvas");
      canvas.width = img.width;
      canvas.height = img.height;
      var ctx = canvas.getContext("2d");
      ctx.drawImage(img, 0, 0, img.width, img.height);
      var dataURL = canvas.toDataURL("image/png");
      return dataURL
      // return dataURL.replace("data:image/png;base64,", "");
}
  
	 //$("a.js-component-link").css("font-size","15px");
      $(window).resize(function(){
          	var x=window.screen.width;
            if(x<400)
            {
                 $("a.js-component-link").css("font-size","12px");
            }	
        	else
            {
               $("a.js-component-link").css("font-size","15px");
            }
         if(x<370){
           	$("span.blue").css("font-size","10px");
            $("span.yellow").css("font-size","10px");
         }
        else
        {
                     	$("span.blue").css("font-size","12px");
           				 $("span.yellow").css("font-size","12px");
        }
        
      });

    //抢单
    $("#openWindows").click(function () {
        window.location.href ="/home/taskcheck/index/id/<?php echo !empty($item['id'])?$item['id']:''; ?>.html";
    });
    $("#task_url").click(function(){
        copy("#task_url");
		var url_user =$("#url").attr("placeholder").replace('http://','').replace("https://",'');
      	//var url_user =$("#url").attr("placeholder")
        var url=new StringBuffer();
      if(url_user.indexOf("?")!=-1)
      {
        url.append(url_user).append("&xapp-target=browser");
      	
      }else{
          url.append(url_user).append("?xapp-target=browser");
      }     
        $(document).dialog({
            type : 'confirm',
            titleShow: false,
            overlayClose: true,
            content: '任务相关地址操作',
            buttonStyle: 'stacked',  // side: 并排; stacked: 堆叠
            buttons: [
                {
                    name: '打开网址',
                    callback: function() {
                      window.open("http://"+url.toString(),'_system');
                    }
                },
                {
                    name: '复制网址',
                    class: 'clipboards',
                    callback: function(e) {
                              var clipboard = new Clipboard('.clipboards', {
                                text: function() {
                                  return $("#url").attr("placeholder");
                                }
                              });
                              clipboard.on('success',
                                           function(e) {
                                alert("复制成功");
                              });
                              clipboard.on('error',
                                           function(e) {
                                console.log(e);
                               });   
                    }
                }
            ]
        });
    });
  function StringBuffer() {
    this.__strings__ = new Array();
	}
StringBuffer.prototype.append = function (str) {
    this.__strings__.push(str);
    return this;    //方便链式操作
	}
StringBuffer.prototype.toString = function () {
    return this.__strings__.join("");
	}
function openWin(url) {
                        api.openWin({
                                name : 'win_show2',
                                url : url,
                                rect : {
                                        x : 0,
                                        y : 0,
                                }
                        })
                }
</script>

<script type="text/javascript" src="/static/home/mobile/js/layui/layui.js"></script>
<script type="text/javascript">
    function remove(id) {
        $(document).dialog({
            type : 'confirm',
            titleText: '放弃接单',
            content: '确定要放弃编号[' + <?php echo !empty($item['id'])?$item['id']:''; ?> + ']的任务吗？',
            onClickConfirmBtn: function(){
                Common.loading.show();
                $.post('/home/mytaskjoin/del.html', { id: id }, function(res) {
                    message(res.message,res.redirect,res.type);
                    Common.loading.hide();
                });
            }
        });
    }

    var saveFlag = "0";
    function followUser(user_id){
        if(saveFlag == '1'){
            return false;
        }
        saveFlag = "1";
        Common.loading.show();
        $.post('/home/fans/followUser.html', { user_id: user_id }, function(res) {
            message(res.message,res.redirect,res.type);
            Common.loading.hide();
        });
    }

    $(function(){
        //流加载
        layui.use('flow', function(){
            var flow = layui.flow;
            flow.load({
                elem: '#replies'
                ,done: function(page, next){
                    var lis = [];
                    $.get('/home/task/task_join_ajax?id='+id+'&page='+page, function(res){
                        layui.each(res.data.data, function(index, item){
                            var html = ['            <div class="replies-list">',
                                '                <div class="user-s cl"><i class="u-pic"><img',
                                '                                src="' + item.avatar + '" onerror="this.src=\'/static/home/mobile/picture/user.png\'"></i>',
                                '                    <div class="u-info">',
                                '                        <div class="bt"><span class="name">' + item.username + '</span><span class="level">V' + item.level + '</span></div>',
                                '                        <div class="time">' + item.audit_time + '</div>',
                                '                    </div>',
                                '                    <i class="static static-sh1">已通过</i>',
                                '                </div>',
                                '                <div class="replies-desc"><p><span style="color:#E84C3D;"></span></p>',
                                '                    </div>',
                                '                <div class="replies-img cl"></div>',
                                '            </div>'].join("");
                            $("#flow").append(html);
                        });
                        next(lis.join(''), res.data.length > 0 ? true : false);
                    });
                }
            });
        });
    });
</script>
  
  
  
  <script type="text/javascript" src="/static/home/mobile/js/jquery.min.js"></script>
        <script type="text/javascript" src="/static/home/mobile/js/swiper.min.js"></script>
        <script type="text/javascript">
            var swiper = new Swiper('.fujian .swiper-container', {
                nextButton: '.fujian .swiper-button-next',
                prevButton: '.fujian .swiper-button-prev',
                spaceBetween: 0,
                speed: 1000,
                autoplay: 3000
            });
        </script>
        <script type="text/javascript" src="/static/home/mobile/js/global.js"></script>
        <!-- 弹出层 -->
        <script src="/static/plugins/dialog/js/dialog.js"></script>
        <!-- 弹出层 -->
        <script type="text/javascript">
    //屏幕可用区域高度
    var scroWidth=$(window).width();
    var scroHeight=window.innerHeight;

    //上传
    function setImagePreviews(id) {

        var docObj = document.getElementById("checkImgData" + id);
        if (docObj.files && docObj.files[0]) {
            
            $("#checkImg" + id).attr("src",window.URL.createObjectURL(docObj.files[0]));

        }else {
            //IE下，使用滤镜
            docObj.select();
            var imgSrc = document.selection.createRange().text;
            var localImagId = document.getElementById("checkImg" + id);
            //必须设置初始大小
            localImagId.style.width = "300px";
            localImagId.style.height = "500px";
            //图片异常的捕捉，防止用户修改后缀来伪造图片
            try {
                localImagId.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale)";
                localImagId.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = imgSrc;
            }
            catch (e) {
                alert("您上传的图片格式不正确，请重新选择!");
                return false;
            }
            document.selection.empty();
        }


        $("#checkImg" + id).addClass('uploadImg');
        $("#checkFileWrap" + id + "  input[type=file]").css({width:"10rem",marginLeft:"-5rem"});
        $("#checkMsg" + id).addClass('content_hide');
        $("#checkUl li").css({width:scroWidth + "px"});

        var delWrap = document.getElementById("checkState" + id);
        if(delWrap == null || delWrap == '' || delWrap == undefined){
            //判断是否是一张多次更改 - 否
            //增加删除按钮
            var delHtml = '';
            delHtml += '<div class="check_state" id="checkState'+ id +'">';
            delHtml += '<div class="check_no" onclick="delCheckImg('+ id +');"><img src="/static/home/mobile/images/state_no.png" alt="不合格"/></div></div>';
            $("#checkFileWrap" + id).append(delHtml);
           
            var liLength = $("#checkUl li").length; 
            if(liLength < 5){
                $("#checkUl .clear").remove();
                //增减添加图片项
                var html = '';
                html += '<li class="checkFile" id="checkFile' + (id+1) + '">';
                html += '<div class="file_wrap" id="checkFileWrap' + (id+1) + '">';
                html += '<img src="/static/home/mobile/images/img.png" id="checkImg' + (id+1) + '">';
                html += '<input type="file" name="checkFile[]" class="checkInput" id="checkImgData' + (id+1) + '" onchange="setImagePreviews(' + (id+1) + ');" accept="image/*">';
                html += '<div class="upload_msg checkMsg" id="checkMsg' + (id+1) + '">上传图片</div></div></li>';
                html += '<div class="clear"></div>';
                $("#checkUl").append(html);
                $(".bottom_a").css({display:"block"});
            }          
            var img_num=$("#checkUl li").length; //图片个数
            $("#checkUl").css( "width",scroWidth * img_num); //设置ul的长度
            $("#checkUl li").css("width",scroWidth + "px"); 
            $(".msg_cont").html("注：点击右侧箭头可继续上传。");//上传过相片的提示信息
            $(".msg_cont").addClass('msg_cont_center');

        }

        var subBtnStat = $(".check_btn_wrap").css("display");
        if(subBtnStat == 'none'){
            $(".check_btn_wrap").show();
        }
        return true;
    }

    function delCheckImg(id){
        //删除审核图样单张图片
        //图片上传后点取消，改变title  并且隐藏图片切换和提交按钮
        //$("title,.title").html('上传图片');
        $("#checkFile" + id).remove();
        var checkLiNum = $("#checkUl li").length;
        if(checkLiNum == 1){
            $(".bottom_a").css({display:"none"});
            $(".msg_cont").html("注：如需上传多张验证图，传完第一张后，点击右侧箭头可继续上传下一张，最多可上传5张。");//没有上传过的提示信息     
            $(".msg_cont").removeClass('msg_cont_center');
            $("#checkUl").css({width:scroWidth * checkLiNum + "px"});
        }else if(checkLiNum == 4){
            //删除此张照片之前已经上传的5张照片，没有空白的上传页，所以在删除之后在最后添加一个上传空白页
            var lastLiId = $(".checkFile").eq(checkLiNum-1).attr("id");
            var lastLiIdNum = parseInt(lastLiId.substr(lastLiId.length-1 , 1));
            var lastImgSrc = $("#checkImg" + lastLiIdNum).attr("src");      
            if(lastImgSrc != '/static/home/mobile/images/img.png'){  
                $("#checkUl .clear").remove();
                //增减添加图片项
                var html = '';
                html += '<li class="checkFile" id="checkFile' + (lastLiIdNum+1) + '">';
                html += '<div class="file_wrap" id="checkFileWrap' + (lastLiIdNum+1) + '">';
                html += '<img src="/static/home/mobile/images/img.png" id="checkImg' + (lastLiIdNum+1) + '">';
                html += '<input type="file" name="checkFile[]" class="checkInput" id="checkImgData' + (lastLiIdNum+1) + '" onchange="setImagePreviews(' + (lastLiIdNum+1) + ');" accept="image/*">';
                html += '<div class="upload_msg checkMsg" id="checkMsg' + (lastLiIdNum+1) + '">上传图片</div></div></li>';
                html += '<div class="clear"></div>';
                $("#checkUl").append(html);
                var img_num=$("#checkUl li").length; //图片个数
                $("#checkUl").css( "width",scroWidth * img_num); //设置ul的长度
                $("#checkUl li").css("width",scroWidth + "px"); 
                $(".msg_cont").html("注：点击右侧箭头可继续上传。");//上传过相片的提示信息
                $(".msg_cont").addClass('msg_cont_center');
            }
            
        }else{
            $("#checkUl").css({width:scroWidth * checkLiNum + "px"});
        }   
        
    }     

    function returnCreateCheck(){
        //取消
        var checkLiNum = $("#checkUl").html('');
        $(".checkFile,#checkUl .clear").remove();
        //图片上传后点取消，改变title  并且隐藏图片切换和提交按钮
        $("title,.title").html('上传图片');
        var html = '';
        html += '<li class="checkFile" id="checkFile0">';
        html += '<div class="file_wrap checkFileWrap" id="checkFileWrap0">';
        html += '<img src="/static/home/mobile/images/img.png" id="checkImg0">';
        html += '<input type="file" name="checkFile[]" class="checkInput" id="checkImgData0" onchange="setImagePreviews(0);" accept="image/*">';
        html += '<div class="upload_msg checkMsg" id="checkMsg0">上传图片</div></div></li>';
        html += '<div class="clear"></div>';
        $("#checkUl").append(html);

        $("#checkUl").css({width:scroWidth + "px" , marginLeft:"0"});
        $(".bottom_a").css({display:"none"});//左右切换按钮
        $(".check_btn_wrap").hide();
        $(".msg_cont").html("注：如需上传多张验证图，传完第一张后，点击右侧箭头可继续上传下一张，最多可上传5张。");//没有上传过的提示信息
        $(".msg_cont").removeClass('msg_cont_center');
        
    }

    var checkImgN = 0 , stepImgN = 0;
    play();

    //点击放大图片
    function imgBig(id){
        var thisSrc = $(id).attr("src");
        $(".big_img").attr("src",thisSrc);
        $(".big_img_wrap,.big_img_content").show();
        var thisHeight = parseInt($(".big_img").css("height"));
        $(".big_img").css({ marginTop : -thisHeight/2 + "px"});
    }

    function  changePrev(){
        //上一张
        checkImgN--;
        checkImgN = (checkImgN < 0 ? 0 : checkImgN);
        play();
    }

    function changeNext(){
        //下一张
        var img_num = $("#checkUl li").length; //图片个数
        checkImgN++;
        checkImgN = ( checkImgN > (img_num-1) ? (img_num-1) : checkImgN );
        play();
    }

    function play() {
        //动画移动
        var img_num=$("#checkUl li").length; //图片个数
        if(img_num > 0){
            img = new Image(); //图片预加载
            img.src = $("#checkUl li").eq(checkImgN).find("img").attr("src");
        }

        if (img_num > 1) {
            //大于1个的时候进行移动
            if (checkImgN < (img_num - 1)) {
                //前1个
                $("#checkUl").animate({"marginLeft": (-(scroWidth) * (checkImgN < 0 ? 0 : checkImgN))});
            }
            else if (checkImgN >= (img_num - 1)) {
                //后1个
                $("#checkUl").animate({"marginLeft": (-(scroWidth) * (img_num - 1))});
            }
        }
    }
          //收集步骤：上传图片提示
	function acceptUp(){
    	message('请先领取任务！','','error');
    }	
          //任务未通过跳转
    function noPass(){
      var nopass_msg = "<?php echo $member_task_join_info['reason']; ?>";
      message(nopass_msg,'home/mytaskjoin/category/t/nopass.html','error');
    }
    function save() {
      	var has_tu = "<?php echo $has_tu; ?>";
      	var error = 0;
      	if(has_tu>0){
        	$(".file_up").each(function(){
              if($(this).val()==''){
              	layer.msg('收集图必须上传')
              //  message('收集图必须上传','','error')
                error++;
                return;
              }
            });
        }
        
      	var has_wz = "<?php echo $has_wz; ?>";
      	if(has_wz>1){
        	$('#check_text_content').val($('.check_text_content2').eq(0).val());
          if($('.check_text_content2').eq(0).val()==''||$('.check_text_content2').eq(1).val()==''){
          	layer.msg('文字验证必须填写')
            // message('文字验证必须填写','','error');error++;
             
             return;
             }
        }
      	if(has_wz==1){
          if($('.check_text_content2').val()==''){
          		layer.msg('文字验证必须填写')
             //message('文字验证必须填写','','error');error++;
             
              return;
             }
            
        }
  
       
		if(error<1){
        	message('正在发布','','loading');
        var formData = new FormData($( "#post_form" )[0]);
        var ua = navigator.userAgent.toLowerCase();
        if (ua.indexOf('safari') != -1 || ua.indexOf('iphone') != -1 || ua.indexOf('ipad') != -1 || ua.indexOf('ipod') != -1) {
            try {
                var iterator = formData.entries(), end = false;
                while(end == false) {
                    var item = iterator.next();
                    if (item.value != undefined) {
                        var pair = item.value;
                        console.log(pair);
                        if (pair[1] instanceof File) {
                            var files = formData.getAll(pair[0]);
                            formData.delete(pair[0]);
                            jQuery.each(files, function (key, fileNameObject) {
                                if (fileNameObject.name && fileNameObject.size != 0) {
                                    formData.append(pair[0], fileNameObject);
                                }
                            });
                        }
                    } else if (item.done == true) {
                        end = true;
                    }
                }
            } catch (e) {
                alert(e.message);
            }
        }
        Common.loading.show();
        $.ajax({
            url: '/home/taskcheck/post',
            type: 'POST',
            data: formData,
            dataType: "json",
            async: false,
            cache: false,
            contentType: false,
            processData: false,
            success: function (res) {
            	Common.loading.hide();
                message(res.message,res.redirect,res.type);
            },
            error: function () {
            	Common.loading.hide();
                message('请求错误','','error');
            }
        });
        }
        
    }
       $('.gzitem').click(function () {
$('#down').hide();
        var content=`     <div style="padding:15px;text-indent:20px;color:black;">
        <p>为保证做悬赏人合理权益，避免不必要的审核失败（未通过）特此制定做悬赏须知规范。请在做悬赏的过程中遵守，以免导致不必要的纠纷或惩罚，请勿相信一切站外的金额交易欺诈行为，否则后果自付！
</p>
<p>
概述：闲猫是一个悬赏、互助、兼职平台！做悬赏是接单人根据悬赏的要求进行操作及截图，在预定时间内上传正确的截图及内容。待悬赏主审核通过后方可获得赏金。
</p>
                                    <p>
<p style="color:red;font-weight:bold;">

一、浏览悬赏：
</p>

1.1看悬赏限制条件及步骤要求能否完成。可能有些悬赏会存在特别要求等。

1.2悬赏默认每个人没有注册过，是新用户才可以报名。同类悬赏每个人只能做一次。每个人只能有一个账号。

1.3报名后需要在“预定时间”内，完成悬赏并提交。

 
<p style="color:red;font-weight:bold;">

二、按步骤操作：

</p>
<p>
2.1注意看悬赏的任务步骤、图文说明、提交截图。根据悬赏描述流程完成悬赏，并按照悬赏主要求提交所需截图。
</p>
<p>
2.2如果遇到困难不能继续完成或做悬赏过程中忘记截图，请在发布者有房点击“联系悬赏主”沟通解决。与悬赏主沟通一下，看看提交一张其他的截图是否可以。
</p>
<p>
2.3如果在做悬赏的过程中，发现在预定时间内悬赏无法正常完成，可以在悬赏详情页右上角菜单中举报该悬赏。平台有专人核查。
</p>

 

<p style="color:red;font-weight:bold;">
三、正确提交：
</p>
<p>
3.1提交的截图一定要多次确认无误。提交的其他内容一定要输入正确。一旦提交后内容无法更改，恶意提交会被平台封号哦！
</p>
<p>
3.2做完悬赏只能提交给对应的悬赏。不可做一次悬赏提交给多个悬赏。属于严重违规行为。
</p>

 

<p style="color:red;font-weight:bold;">
四、注意事项：
</p>
<p>
4.1闲猫中的所有悬赏都是第三方悬赏主发布，在做悬赏的过程中遇到问题或者有疑问可以联系悬赏主。每位用户都有尊重别人、被别人尊重的义务和权利，尊重对方就是尊重自己。当遇到问题要想办法解决问题，而不是恶言相对。同时平台严禁诱导、引导私下交易，私下交易被骗平台概不负责。
</p>
<p>
4.2若因做悬赏人（手机没电、有其他急事、忘记截图、提交错误的截图、提交错误的内容等）主观因素导致无法提交悬赏或提交后被审核失败等带来的其他问题，请及时与悬赏主沟通解决。因做悬赏人主观原因导致出现问题后产生纠纷平台无法受理。
</p>
<p>
4.3在做悬赏的过程中，你报名哪个悬赏，在做完之后一定要提交给对应的悬赏。不能从悬赏A报名做悬赏之后提交给悬赏B，或者提交给悬赏A之后再去提交给悬赏B。这属于严重违规行为【多方提交】，将会受到惩罚。
</p>
<p>
4.4做悬赏之前一定要确认此类悬赏之前没做过，如果之前关注过、注册过或下载过该APP，看到悬赏之后以获得赏金为目的重新提交，这种不属于新用户也会被审核失败，并且属于违规行为。
</p>
<p>
4.5闲猫同一用户只能有一个账号，不可以使用朋友、家人等其他人账号进行操作。多账号将会面临全部封号。平台严厉打击换号提交、多账号提交，发现后直接封号概不解封。“同一用户”是指：根据不同闲猫账号在注册、登录、使用中的关联信息，闲猫判断其实际为同一用户。关联信息举例：同一手机、同一证件、同一手机号、同一支付账号、同一网络设备、同一地址等。
</p>
<p>
4.6若在做悬赏的过程中存在主观恶意行为（侥幸心理提交假数据、示例图、P图、多方提交、恶意提交等行为）或扰乱平台秩序（发广告、勒索、辱骂、刷单等行为）将会受到惩罚，最严重将会封号并禁止提现。
</p>
<p>
4.7严禁提交由他人提供的截图，包括悬赏主。若悬赏主要求提交某张截图后账号被封平台不负责任。
</p>
<p>
4.8每次违规记录平台都将永久记录可查，累积多次违规将会自动封号。
</p>
<p>
4.9若做悬赏人违规获得赏金平台有权扣回。
</p>
                                    </p>

                                </div>`
              layer.open({
                    type: 1,
                    title:'&nbsp;&nbsp;接单规则',
                    skin: 'layui-layer-demo', //样式类名
                    closeBtn: 0, //不显示关闭按钮
                    anim: 2,
                    shadeClose: true, //开启遮罩关闭
                    content:content
                  });


        //$('.van-dialogx').show();


      });
			  $('.van-buttonx').click(function () {
			  $('.van-dialogx').hide();
			});
			  $('.lybtn').click(function () {
			  $('.membes').show();
			});
			 $('.membesbtn').click(function () {
			  $('.membes').hide();
			});
          //显示blob
          $(".file_up").change(function () {
            var index =  $(".file_up").index(this);
            var file = $(".file_up").eq(index);
           
        　　var objUrl = getObjectURL(file[0].files[0]);
            console.log(objUrl);
            $(".jietu").eq(index).attr("src",  objUrl ).css('display','block');
        　　// $(".file_class").eq(index).css("background-image", "url(" + objUrl + ")");
        　　
        　　});
          //blob
          function getObjectURL(file) {
        　　var url = null;
        　　if (window.createObjectURL != undefined) {
        　　url = window.createObjectURL(file);
        　　}else if (window.URL != undefined) {
        　　url = window.URL.createObjectURL(file);
        　　}else if (window.webkitURL != undefined) {
        　　url = window.webkitURL.createObjectURL(file);
        　　}
        　　return url;
        　　}
        　　$('#canyu').click(function(){
        　　	$('.canyu').css('display','block');
        　　	$('.neirong').css('display','none');
        　　	$('.van-collapse').css('display','none');
        　　	$('.van-hairline--top').css('display','none');
        　　})
        　　$('#neirong').click(function(){
        　　	$('.neirong').css('display','block');
        　　	$('.canyu').css('display','none');
        　　	$('.van-collapse').css('display','none');
        　　	$('.van-hairline--top').css('display','none');
        　　})
			
        </script>
<style>
  .layui-layer-demo{
    height:70%;
    overflow:scroll;
  }
 .layui-layer-demo .layui-layer-title{
    text-align:center;
    background:#ffffff;
    color:red;
    font-size:16px;
    font-weight:bold;
    padding:0px;
 }
</style>
<script>
var task_id="<?php echo $item['id']; ?>"
var is_see=<?php echo !empty($seepackage)?1:0; ?>;
var left_time=<?php echo !empty($seepackage)?1:0; ?>?10:0;
var interval=setInterval (function () {
	if(is_see){
		if(left_time>=0){
			$('#left_time').html(left_time+'S')	
			left_time--;
		}
		if(left_time == -1){
			
		        Common.loading.show();
		        $.ajax({
		            url: '/home/task/send_seepackage/task_id/'+task_id,
		            type: 'POST',
		            data: {},
		            dataType: "json",
		            async: false,
		            cache: false,
		            contentType: false,
		            processData: false,
		            success: function (res) {
		            	Common.loading.hide();
		            	if(res.type == 'success'){
			                message(res.message,res.redirect,res.type);
							$('#left_time').html('领取成功')	
		            	}
		                
		            },
		            error: function () {
		        			// 	Common.loading.hide();
		              //  message('请求错误','','error');
		            }
		        });
			
			window.clearInterval(interval)
			
			
		}
	}
   
    
}, 1000);

</script>
</body>
</html>